﻿@model WebUI.Models.Dates



@{WebUI.Models.Dates.Day id = Model[(int)ViewBag.DayIndex];}
@{int idNum = (int)ViewBag.DayIndex;}

<select id = "@string.Format("start{0}Hour", id.Name)" name ="@string.Format("start{0}Hour", id.Name)"  onchange = "summary.AutoFillDate(@idNum)">
          <option value = "-1"></option>
    @for (int i = 1; i < 13; i++)
    {
        <option value = "@i">@i</option>
    }
</select>
:
<select id="@string.Format("start{0}Minute", id.Name)" name="@string.Format("start{0}Minute", id.Name)" onchange = "summary.AutoFillDate(@idNum)">
    <option value = "-1"></option>
    <option value = "0"> 00</option>
    <option value = "30">30</option>
</select>

<select id="@string.Format("start{0}Meridian", id.Name)" name="@string.Format("start{0}Meridian", id.Name)" onchange = "summary.AutoFillDate(@idNum)">
    <option value = "-1"></option>
    <option value = "AM">AM</option>
    <option value = "PM">PM</option>
</select>

to

<select id="@string.Format("end{0}Hour", id.Name)" name="@string.Format("end{0}Hour", id.Name)" onchange = "summary.AutoFillDate(@idNum)">
    <option value = "-1"></option>
    @for (int i = 1; i < 13; i++)
    {
        <option value = "@i">@i</option>
    }
</select>
:
<select id="@string.Format("end{0}Minute", id.Name)" name="@string.Format("end{0}Minute", id.Name)" onchange = "summary.AutoFillDate(@idNum)">
    <option value = "-1"></option>
    <option value = "0"> 00</option>
    <option value = "30">30</option>
</select>
<select id="@string.Format("end{0}Meridian", id.Name)" name="@string.Format("end{0}Meridian", id.Name)" onchange = "summary.AutoFillDate(@idNum)">
    <option value = "-1"></option>
    <option value = "AM">AM</option>
    <option value = "PM">PM</option>
</select>